<? 
   include("mysql.php");
    $sql = mysql_query ("SELECT * FROM loot");


while ($db = mysql_fetch_object($sql))
     {
     //$id_loot [0] = $db -> NULL;
     //$name_loot [0] = $db -> NULL;
     //$cost_loot[0] = $db -> NULL;

     $id_loot [] = $db -> id;
     $name_loot [] = $db -> name;
     $cost_loot[] = $db -> cost;

     }
echo
"
    <select type='loot' name = \"id_loot \">";
       for ($i = 0; $i < count($id_loot); $i++)
	   {
		{
	echo "<option value=\"$id_loot[$i]\"> $name_loot[$i] $cost_loot[$i] </option>";
		}
	}
echo  "</select>";
//echo '<input type="submit" value="add">';
?>
